home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / plotting / gnuplot3.lzh / gnuplot / docs / Makefile < prev    next >
Makefile  |  1991-08-22  |  2KB  |  96 lines

  1. # Makefile for GNUPLOT documentation
  2. #
  3. # Note that the top-level file for documentation is gnuplot.doc.
  4. # See README.
  5. #
  6. # To print manual:
  7. #    make gnuplot.dvi             (for latex)
  8. #    (print or view gnuplot.dvi)
  9. # OR
  10. #    make gnuplot.nroff           (for nroff)
  11. #    (print or view gnuplot.nroff)
  12. #   or
  13. #    make "TROFF=itroff" troff    (for troff; use your troff here)
  14. #
  15. # $Id: Makefile,v 1.1 90/01/11 15:43:03 dfk Exp Locker: dfk $
  16.  
  17. # usually overridden by ../Makefile
  18. HELPDEST = /usr/local/lib/
  19.  
  20. # substitute your troff command (and any flags) for this one
  21. TROFF=troff
  22.   
  23. # substitute cp if you do not have the install program
  24. INSTALL=install
  25.  
  26. # Compiler flags
  27. # -DSYSV if att sys V
  28. # -DMSDOS if MSDOS PS
  29. # -traditional -g -O if gcc (set 'CC = gcc')
  30. # no extra flags for BSD
  31. CFLAGS = -s
  32. CC = cc
  33.  
  34. # default is what is needed for interactive gnuplot
  35. default: gnuplot.hlp gnuplot.gih
  36.  
  37. ### [tn]roff documentation
  38. troff: gnuplot.ms titlepage.ms
  39.     tbl gnuplot.ms | eqn | $(TROFF) -ms
  40.  
  41. nroff gnuplot.nroff: gnuplot.ms titlepage.ms
  42.     tbl gnuplot.ms | neqn | nroff -ms | col > gnuplot.nroff
  43.  
  44. ms gnuplot.ms: doc2ms gnuplot.doc
  45.     ./doc2ms < gnuplot.doc > gnuplot.ms
  46.  
  47. doc2ms: doc2ms.c
  48.     $(CC) $(CFLAGS) -o doc2ms doc2ms.c
  49.  
  50. ### LaTeX documentation
  51. tex gnuplot.tex: doc2tex gnuplot.doc
  52.     ./doc2tex < gnuplot.doc > gnuplot.tex
  53.  
  54. dvi gnuplot.dvi: gnuplot.tex titlepage.tex
  55.     (latex gnuplot.tex ; latex gnuplot.tex)
  56.  
  57. doc2tex: doc2tex.c
  58.     $(CC) $(CFLAGS) -o doc2tex doc2tex.c
  59.  
  60. # this is how to make gnuplot.hlp
  61. hlp gnuplot.hlp: doc2hlp gnuplot.doc
  62.     ./doc2hlp < gnuplot.doc > gnuplot.hlp
  63.  
  64. doc2hlp: doc2hlp.c
  65.     $(CC) $(CFLAGS) -o doc2hlp doc2hlp.c
  66.  
  67. # this is how to make gnuplot.gih
  68. gih gnuplot.gih: doc2gih gnuplot.doc
  69.     ./doc2gih < gnuplot.doc > gnuplot.gih
  70.  
  71. doc2gih: doc2gih.c
  72.     $(CC) $(CFLAGS) -o doc2gih doc2gih.c
  73.  
  74. # this is how to check the gnuplot.doc file
  75. check: checkdoc gnuplot.doc
  76.     ./checkdoc < gnuplot.doc
  77.  
  78. checkdoc: checkdoc.c
  79.     $(CC) $(CFLAGS) -o checkdoc checkdoc.c
  80.  
  81. # For Unix and MSDOS only
  82. install-unix: gnuplot.gih
  83.     $(INSTALL) gnuplot.gih $(HELPDEST)
  84.  
  85. # for VMS only
  86. install-vms: gnuplot.hlp
  87.     $(INSTALL) gnuplot.hlp $(HELPDEST)
  88.  
  89. # remove all derived files
  90. clean:
  91.     rm -f doc2ms gnuplot.nroff gnuplot.ms
  92.     rm -f doc2tex gnuplot.tex gnuplot.dvi gnuplot.aux gnuplot.log gnuplot.toc
  93.     rm -f doc2hlp gnuplot.hlp
  94.     rm -f doc2gih gnuplot.gih
  95.     rm -f checkdoc *~ *.o core a.out
  96.